package com.ruoyi.project.deviceInfo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.deviceInfo.mapper.MsgDdjMapper;
import com.ruoyi.project.deviceInfo.domain.MsgDdj;
import com.ruoyi.project.deviceInfo.service.IMsgDdjService;
import com.ruoyi.common.core.text.Convert;

/**
 * 设备监控Service业务层处理
 *
 * @author ruoyi
 * @date 2023-04-11
 */
@Service
public class MsgDdjServiceImpl implements IMsgDdjService
{
    @Autowired
    private MsgDdjMapper msgDdjMapper;

    /**
     * 查询设备监控
     *
     * @param id 设备监控主键
     * @return 设备监控
     */
    @Override
    public MsgDdj selectMsgDdjById(Long id)
    {
        return msgDdjMapper.selectMsgDdjById(id);
    }

    /**
     * 查询设备监控列表
     *
     * @param msgDdj 设备监控
     * @return 设备监控
     */
    @Override
    public List<MsgDdj> selectMsgDdjList(MsgDdj msgDdj)
    {
        return msgDdjMapper.selectMsgDdjList(msgDdj);
    }

    /**
     * 新增设备监控
     *
     * @param msgDdj 设备监控
     * @return 结果
     */
    @Override
    public int insertMsgDdj(MsgDdj msgDdj)
    {
        return msgDdjMapper.insertMsgDdj(msgDdj);
    }

    /**
     * 修改设备监控
     *
     * @param msgDdj 设备监控
     * @return 结果
     */
    @Override
    public int updateMsgDdj(MsgDdj msgDdj)
    {
        return msgDdjMapper.updateMsgDdj(msgDdj);
    }

    /**
     * 批量删除设备监控
     *
     * @param ids 需要删除的设备监控主键
     * @return 结果
     */
    @Override
    public int deleteMsgDdjByIds(String ids)
    {
        return msgDdjMapper.deleteMsgDdjByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除设备监控信息
     *
     * @param id 设备监控主键
     * @return 结果
     */
    @Override
    public int deleteMsgDdjById(Long id)
    {
        return msgDdjMapper.deleteMsgDdjById(id);
    }

    @Override
    public int selectAllCount() {
        return msgDdjMapper.selectAllCount();
    }


    @Override
    public int selectByYx() {
        return msgDdjMapper.selectByYx();
    }

    @Override
    public int selectYc() {
       return msgDdjMapper.selectYc();
    }

    @Override
    public List<MsgDdj> selectMsgDdjlist1() {
        return msgDdjMapper.selectMsgDdjlist1();
    }

    @Override
    public List<MsgDdj> selectMsgDdjlist2() {
        return msgDdjMapper.selectMsgDdjlist2();
    }
}
